package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @ClassName :  TimeLine
 * @Author : Tenebrous
 * @Date: 2020/12/12 19:54
 * @Description : 朋友圈时间线
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "quanzi_time_line")
public class TimeLine implements Serializable {

    private static final long serialVersionUID = -2514994509342316380L;

    /**
     * 主键id
     */
    private ObjectId id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 发布id
     */
    private ObjectId publishId;

    /**
     * 发布的时间
     */
    private Long date;

}
